package com.cloud.model;

import com.cloud.base.BaseEntity;
import com.cloud.model.system.SysUser;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;

@Entity
@Table(name = "tb_template")
@EntityListeners(AuditingEntityListener.class)
public class Template extends BaseEntity{
    private String name;
    public String getName() {
        return name;
    }
    @ManyToOne
    @JoinColumn(name = "user_id")
    private SysUser sysUser;

    public void setName(String name) {
        this.name = name;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }
}
